package com.carrot.newsgallery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Api("保存所有用户上传的文件")
public class UserFile {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("自增主键")
    private int userFileId;

    @ApiModelProperty("文件所属用户ID")
    private int userId;

    @ApiModelProperty("文件所属收藏")
    private int favorId;

    @ApiModelProperty("文件存储路径,精确到父目录,末尾没有反斜杠")
    private String path;

    @ApiModelProperty("文件名,包含拓展名")
    private String fileName;

}
